package com.guit.hrms.dto.interview;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InterviewDTO {
    @NotNull(message = "planId不能为空")
    private Integer planId;
    @NotBlank(message = "deptId不能为空")
    private String deptId;
    @NotBlank(message = "positionNumber不能为空")
    private String positionNumber;
    @NotBlank(message = "interviewerIds不能为空")
    private String interviewerIds;
    @NotNull(message = "interviewRound不能为空")
    private Integer interviewRound;
    @NotBlank(message = "name不能为空")
    private String name;
    @NotBlank(message = "place不能为空")
    private String place;
    @NotNull(message = "recruitsNumber不能为空")
    private Integer recruitsNumber;
    @NotNull(message = "startTime不能为空")
    @Future(message = "开始时间不能早于当前时间")
    private LocalDateTime startTime;
    @NotNull(message = "endTime不能为空")
    @Future(message = "结束时间不能早于当前时间")
    private LocalDateTime endTime;
}
